﻿using System;
using System.Web.Security;

public partial class ForeProgram_Shared_UserInfo : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["AccountInfo"] == null)
        {
            FormsAuthentication.SignOut();
            Session.Clear();
            Session.Abandon();
            Response.Clear();
            Response.Write("<script defer>window.alert('您没有权限进入本页或当前登录用户已过期！\\n请重新登录或与管理员联系！');parent.location='Login.aspx';</script>");
            Response.End();
        }
    }
}
